import fetch from 'utils/fetch';
/**
 * 省市区三级联动查询
 */
//查询所有省
export function queryAllProvince() {
  const params = {

  };
  return fetch({
      url: 'area/queryAllProvince',
      method: 'get',
      params
  });
}

//查询所有市
export function queryAllCityByProvinceId(provinceId) {
  const params = {
    provinceId
  };
  return fetch({
      url: 'area/queryAllCityByProvinceId',
      method: 'get',
      params
  });
}

//查询所有区
export function queryAllAreaByCityId(cityId) {
    const params = {
        cityId
    };
    return fetch({
        url: 'area/queryAllAreaByCityId',
        method: 'get',
        params
    });
  }

